package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.common.annotation.DataPermission;
import com.youlai.boot.system.model.entity.SpotTravel;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.form.SpotTravelForm;
import com.youlai.boot.system.model.query.SpotTravelQuery;
import com.youlai.boot.system.model.vo.SpotTravelVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 旅行社数据Mapper接口
 *
 * @author lwb
 * @since 2025-06-29 21:14
 */
@Mapper
public interface SpotTravelMapper extends BaseMapper<SpotTravel> {

    /**
     * 获取旅行社数据分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    @DataPermission(deptAlias = "st", userAlias = "st")
    Page<SpotTravelVO> getSpotTravelPage(Page<SpotTravelVO> page, SpotTravelQuery queryParams);

    /**
     *
     * @param id
     * @return
     */
    SpotTravelForm getSpotTravelFormData(@Param("id") Long id);

    /**
     *
     * @param deptId
     * @param categoryId
     * @return
     */
    SpotTravel getSpotTravel(@Param("deptId")Long deptId, @Param("categoryId")Long categoryId);
}
